//
//  WWRequestAPI+BankInfo.m
//  WangLottery
//
//  Created by 黄修勇 on 12-9-13.
//
//

#import "WWRequestAPI+BankInfo.h"

@implementation WWRequestAPI (BankInfo)

-(long)bindBankWithName:(NSString *)name cartid:(NSString *)cardid bandID:(NSString *)bankID  bankCardID:(NSString *)bankCardID bankLocation:(NSString *)bankLocation tel:(NSString *)tel psw:(NSString *)psw target:(id)target{

    NSDictionary *dic=[NSDictionary dictionaryWithObjectsAndKeys:
                       tel,@"tname",
                       psw,@"tpwd",
                       name,@"truename",
                       cardid,@"idcard",
                       bankID,@"bankid",
                       bankCardID,@"bankaccount",
                       bankLocation,@"bankadd", nil];
    return [self requestWithAction:@"bandingcard" paras:dic target:target parserSEL:@selector(simpleResultForString:)];
}

-(long)verifyBindWithTel:(NSString *)tel psw:(NSString *)psw target:(id)target{

    NSDictionary *dic=[NSDictionary dictionaryWithObjectsAndKeys:
                       tel,@"tname",psw,@"tpwd", nil];
    return [self requestWithAction:@"isbanding" paras:dic target:target parserSEL:@selector(simpleResultForString:)];
}
@end
